//
//  PGBottomView.m
//  youqu
//
//  Created by 彭鹏 on 16/10/21.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "PGBottomView.h"
#import "PGPostItem.h"
@interface PGBottomView ()
@property (weak, nonatomic) IBOutlet UIButton *dingButton;
@property (weak, nonatomic) IBOutlet UIButton *caiButton;
@property (weak, nonatomic) IBOutlet UIButton *shareButton;
@property (weak, nonatomic) IBOutlet UIButton *commentButton;

@end

@implementation PGBottomView

+ (instancetype)bottomView {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];
}

- (void)setItem:(PGPostItem *)item {
    _item = item;
    [_dingButton setTitle:@"666" forState:UIControlStateNormal];
    [_caiButton setTitle:item.hate forState:UIControlStateNormal];
    [_shareButton setTitle:item.repost forState:UIControlStateNormal];
    [_commentButton setTitle:item.comment forState:UIControlStateNormal];
}

@end
